package com.yungu.swift.system.marketing.service.impl;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.service.impl.BaseServiceImpl;
import com.yungu.swift.system.marketing.dao.MarketingShareMapper;
import com.yungu.swift.system.marketing.model.dto.MarketingShareDto;
import com.yungu.swift.system.marketing.model.vo.MarketingShareVo;
import com.yungu.swift.system.marketing.service.MarketingShareService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

/**
 * <p>
 * 活动分享业务逻辑处理接口
 *
 * @author xiuyin.cui - Generate
 * @version 1.1.0-SNAPSHOT
 * @since 2019-04-25 13:50
 */
@Service
public class MarketingShareServiceImpl extends BaseServiceImpl<MarketingShareDto> implements MarketingShareService {

    @Autowired
    private MarketingShareMapper marketingShareMapper;

    @Override
    protected IMapper<MarketingShareDto> getMapper() {
        return marketingShareMapper;
    }

    @Override
    public ResponseData<MarketingShareVo> findVo(Map<String, Object> map) {
        return ResponseData.buildSuccessResponse(marketingShareMapper.findVo(map));
    }
}